/*************
 **
 ** Project:      stopwatch
 ** File info:    $Id: AboutPage.qml 23 2012-05-04 10:44:29Z Kuzma.Shapran@gmail.com $
 ** Author:       Copyright (C) 2011 Kuzma Shapran <Kuzma.Shapran@gmail.com>
 ** License:      GPLv3
 **
 **  This file is part of Stopwatch.
 **
 **  Stopwatch is free software: you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License as published by
 **  the Free Software Foundation, either version 3 of the License, or
 **  (at your option) any later version.
 **
 **  Stopwatch is distributed in the hope that it will be useful,
 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 **  GNU General Public License for more details.
 **
 **  You should have received a copy of the GNU General Public License
 **  along with Stopwatch.  If not, see <http://www.gnu.org/licenses/>.
 **
 *************/


import QtQuick 1.1
import com.nokia.symbian 1.1

Page {
    id: aboutPage

    tools: ToolBarLayout {
        id: toolBarLayout
        ToolButton {
            flat: true
            iconSource: "toolbar-back"
            onClicked: window.pageStack.depth <= 1 ? Qt.quit() : window.pageStack.pop()
        }
    }

    Flickable {
        anchors.fill: parent
        contentWidth: content.width
        contentHeight: content.height

        Column {
            id: content
            spacing: 20
            width: aboutPage.width

            Row {
                spacing: 20
                height: title.height

                Image {
                    source: "Stopwatch.svg"
                    width: height
                    height: title.height
                }

                Text {
                    id: title

                    font.pixelSize: platformStyle.fontSizeLarge * 2
                    color: platformStyle.colorNormalMid
                    style: Text.Raised
                    styleColor: platformStyle.colorNormalLight

                    text: window.windowTitle
                }
            }

            Text {
                width: parent.width
                font.pixelSize: platformStyle.fontSizeMedium
                color: platformStyle.colorNormalLight

                horizontalAlignment: Text.AlignJustify
                wrapMode: Text.Wrap

                text: "A very simple Stopwatch application."
            }

            Text {
                width: parent.width
                font.pixelSize: platformStyle.fontSizeMedium
                color: platformStyle.colorNormalLight

                horizontalAlignment: Text.AlignJustify
                wrapMode: Text.Wrap

                text: "Version: " + majorVersion + "." + minorVersion + "." + revision
            }

            Text {
                width: parent.width
                font.pixelSize: platformStyle.fontSizeMedium
                color: platformStyle.colorNormalLight

                horizontalAlignment: Text.AlignJustify
                wrapMode: Text.Wrap

                text: "<html>Copyright: &copy; Kuzma Shapran, 2012</html>"
            }

            Text {
                width: parent.width
                font.pixelSize: platformStyle.fontSizeMedium
                color: platformStyle.colorNormalLight

                horizontalAlignment: Text.AlignJustify
                wrapMode: Text.Wrap

                text: "License: <a href='http://www.gnu.org/licenses/gpl.html'>GPL v.3</a>"
                onLinkActivated: Qt.openUrlExternally(link)
            }

            Text {
                width: parent.width
                font.pixelSize: platformStyle.fontSizeMedium
                color: platformStyle.colorNormalLight

                horizontalAlignment: Text.AlignJustify
                wrapMode: Text.WrapAnywhere

                text: "Website: <a href='http://cosmically-soft.blogspot.com/2012/04/stopwatch.html'>http://cosmically-soft.blogspot.com/2012/04/stopwatch.html</a>"
                onLinkActivated: Qt.openUrlExternally(link)
            }
        }
    }
}
